package Code;

public class Flag {
	
	private Point point;
	private Team owningTeam; 
	private Team carryingTeam;
	
	public Flag(String[] attrs) {
		this.point = new Point(Double.parseDouble(attrs[3]), Double.parseDouble(attrs[4]));
		this.owningTeam = Team.valueOf(attrs[1].toUpperCase());
		this.carryingTeam = Team.valueOf(attrs[2].toUpperCase());
	}
	
	public Point getPoint() {
		return point;
	}
	
	public Team getTeam() {
		return owningTeam;
	}
	
	public Team getCarryingTeam() {
		return carryingTeam;
	}
	
	public Team getOwningTeam() {
		return owningTeam;
	}
}
